package com.andy.web.basedata.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.andy.domain.model.location.City;
import com.andy.domain.model.location.District;
import com.andy.domain.model.location.Province;
import com.andy.web.basedata.dao.BasedataMapper;

@Service
public class BasedataService {
	
	@Autowired
	private BasedataMapper basedataMapper;

	public List<Province> getAllProvinces() {
		return basedataMapper.getAllProvinces();
	}

	public List<City> getCitysByProvinceId(String provinceId) {
		return basedataMapper.getCitysByProvinceId(provinceId);
	}

	public List<District> getDistrictsByCityId(String cityId) {
		return basedataMapper.getDistrictsByCityId(cityId);
	}
	
}
